package com.atguigu.cloud.apis;

import com.atguigu.cloud.entities.PayDTO;
import com.atguigu.cloud.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "cloud-payment-service")
public interface PayFeignApi {

    @GetMapping("pay/get/{id}")
    Result get(@PathVariable("id") Integer id);

    @DeleteMapping("pay/delete/{id}")
    Result delete(@PathVariable("id") Integer id);

    @PostMapping("pay/add")
    Result add(@RequestBody PayDTO payDTO);

    @GetMapping("test")
    String test();

}
